import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: '主页',
      component: () => import('@/pages/IndexView.vue')
    },
    {
      path: '/team',
      name: '组队',
      component: () => import('@/pages/TeamView.vue')
    },
    {
      path: '/user',
      name: '用户',
      component: () => import('@/pages/UserView.vue')
    },
    {
      path: '/search',
      name: '搜索',
      component: () => import('@/pages/SearchView.vue')
    },
    {
      path: '/user/edit',
      name: '用户编辑',
      component: () => import('@/pages/EditUser.vue')
    },
    {
      path: '/user/list',
      name: '搜索结果页',
      component: () => import('@/pages/SearchResultPage.vue')
    }

  ],
})

export default router
